<?php 
function smarty_function_admin_link($params, $smarty)
{
	if(SiteConfig::RewriteLinks === true)
	{
		return SiteConfig::Domain . 'admin/';
	} else {
		return SiteConfig::Domain . '?controller=admin';
	}		
}